Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change return type of Solver.solve from tuple to Solution instance #30

Merged
merged 2 commits into from
May 1, 2023

Conversation

tlambert03
Copy link
Member

closes #26 by changing the return type of Solver.solve from a tuple of (Solution, str) to just an instance of Solution ...

Solution gains a get_status() -> str method that can be used to recover the string.

This is a breaking API change.

@tlambert03 tlambert03 changed the title change return type change return type of Solver.solve from tuple to Solution instance Apr 11, 2023
@codecov-commenter
Copy link

codecov-commenter commented Apr 11, 2023

Codecov Report

❗ No coverage uploaded for pull request base (main@70a2362). Click here to learn what that means.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##             main      #30   +/-   ##
=======================================
  Coverage        ?   86.46%           
=======================================
  Files           ?        3           
  Lines           ?      303           
  Branches        ?        0           
=======================================
  Hits            ?      262           
  Misses          ?       41           
  Partials        ?        0           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@tlambert03 tlambert03 added the breaking API breaking change label Apr 11, 2023
@funkey
Copy link
Member

funkey commented May 1, 2023

Thanks a lot! :)

@funkey funkey merged commit 2af45f0 into funkelab:main May 1, 2023
@tlambert03 tlambert03 deleted the solution-return branch May 1, 2023 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking API breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[task] change return type of Solver.solve
3 participants